package com.caregiver.watch.business.care.service.strategy;

import com.caregiver.watch.business.care.enums.HealthAlertTypeEnum;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description: 健康预警策略管理器
 * @Author 疆戟
 * @Date 2025/10/26 13:36
 * @Version 1.0
 */
@AllArgsConstructor
@Component
public class HealthWarningStrategyManage {

    private final Map<HealthAlertTypeEnum, HealthWarningStrategy> STRATEGY_MANAGE;


    /**
     * 获取策略
     * @param alertType
     * @return
     */
    public HealthWarningStrategy getStrategy(HealthAlertTypeEnum alertType) {
        return STRATEGY_MANAGE.get(alertType);
    }
}
